<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean id="CurrentGameDayBean" class="de.msiggi.beans.CurrentGameDayBean" scope="application"/>
<jsp:setProperty name="CurrentGameDayBean" property="*"/>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setLocale value="de_DE"/>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Aktuelle Ergebnisse</title>
</head>
<body bgcolor="#00CC33">
<div style="font-size:50%; color:#000099; font-family:Verdana">
  
 

	<center>
	<h1>Aktueller Spieltag der Fußball Bundesliga</h1>
	<table rules="rows" bgcolor="#FFFFFF" border="1" rules="rows" >
	 <colgroup>
    <col width="30">
    <col width="40">
    <col width="40">
    <col width="20">
    <col width="5">
    <col width="20">
 	 </colgroup>
		<th colspan="6"><br>${CurrentGameDayBean.currentGameDay.gamedayGroup}</th>
		<c:forEach items="${CurrentGameDayBean.currentGameDay.matches}" var="singleMatch">
				<tr>
					<td><fmt:formatDate value="${singleMatch.matchDateTime.time}"
							pattern="EEE dd.MM.yyy" /></td>
					<td><c:out value="${singleMatch.nameTeam1}" /></td>
					
					<td><c:out value="${singleMatch.nameTeam2}" /></td>
					<td><c:if test="${singleMatch.matchIsFinished}">
							<c:out value="${singleMatch.pointsTeam1}" />
						</c:if></td>
					<td>:</td>
					<td><c:if test="${singleMatch.matchIsFinished}">
							<c:out value="${singleMatch.pointsTeam2}" />
						</c:if></td>
				</tr>
		</c:forEach>
	</table></center>

</div>
</body>
</html>